
{include file="admin/common"}
<style>
    .offline{
        background: #aaa;
    }
</style>
<table cellpadding="0" cellspacing="0" class="list_hy">
    <tr>
        <th scope="col">设备id</th>
        <th scope="col">设备名称</th>
        <th scope="col">设备me编码</th>
        <th scope="col">设备备注</th>
        <th scope="col">更新时间</th>
        <th scope="col">状态</th>
    </tr>
        {volist name="list" id = 'item'}
    <tr {if condition="$item.online == false"} class="offline" {/if}>
        <td> {$item.id} </td>
        <td> {$item.device_name} </td>
        <td> {$item.device_me} </td>
        <td> {$item.device_memo} </td>
        <td> {$item.updated_at} </td>
        <td>   {if condition="$item.online"} <a href="">上线</a> {else} 下线 {/if}  </td>
    </tr>
        {/volist}
</table>
